package lesson03.TCP;

import java.io.IOException;
import java.util.Scanner;

public class TCPMesgServer01 extends TCPPoolServer01 {


    public TCPMesgServer01(int port) throws IOException {
        super(port);
    }


    @Override
    protected String process(String request) {
        System.out.println("request = "+request);
        Scanner scanner = new Scanner(System.in);
        String ServerMessage = scanner.nextLine();
        return ServerMessage;
    }

    public static void main(String[] args) throws IOException {
        TCPMesgServer01 tcpMesgServer01 = new TCPMesgServer01(9090);
        tcpMesgServer01.start();
    }
}
